<!--
User: ${author}
Date: ${date}
view: ${table.comment!} 添加
-->
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"
         contentType="text/html;charset=utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<html>
<head>
    <title>${table.comment!}详细</title>
    <link rel="stylesheet" href="https://www.layuicdn.com/layui-v2.5.4/css/layui.css"/>
</head>
<body>
<form style="margin-top: 20px;margin-left: 20px"  class="layui-form layui-form-pane" action="">

<#if fieldList?exists>
    <#list fieldList?keys as key>
        <div class="layui-form-item">
            <#assign fieldLists = fieldList[key]>
            <#if fieldLists??>
                <#list fieldLists! as field>
                <label class="layui-form-label"
                       style="width: 150px"><#if field.comment!?length gt 0>${field.comment}<#else >${field.propertyName}</#if></label>
                <div class="layui-input-inline">
                    <input class="layui-input" <#if field.notNull>lay-verify="required"</#if> name="${field.propertyName}"
                           id="${field.propertyName}" value="${'$'+'{'+table.capitalEntityName + '.' + field.propertyName + '}'}">
                </div>
                </#list>
            </#if>
        </div>
    </#list>
</#if>
</form>
</body>
</html>
<script src="https://www.layuicdn.com/layui-v2.5.4/layui.js"></script>
<script>
    layui.use(['form'], function () {
        var  form = layui.form , path = "<%=basePath%>";

    });
</script>
